//
//  AZURLRequest+Configure.h
//  FKNetwork
//
//  Created by G-Xi0N on 2018/4/3.
//  Copyright © 2018年 gaoX. All rights reserved.
//

#import "AZURLRequest.h"

@class FKResponse;
@interface AZURLRequest (Configure)

+ (instancetype)requestWithPath:(NSString *)path parameters:(NSDictionary *)parameters;

- (void)completionWithSuccess:(void (^)(FKResponse *response))success
                      failure:(void (^)(NSError *error))failure;

- (void)completionWithCache:(void (^)(FKResponse *response))cache
                    success:(void (^)(FKResponse *response))success
                    failure:(void (^)(NSError *error))failure;

@end
